package com.car.service.impl;

import com.car.dao.CarMapper;
import com.car.entity.Car;
import com.car.service.ICarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("carService")
public class CarService implements ICarService {

    @Autowired
    @Qualifier("carMapper")
    public CarMapper carMapper;


    @Override
    public List<Car> findAll() {
        System.out.println("查询爱车");
        return carMapper.findAll();
    }
}
